
<%@ page import="com.memora.seguranca.SegUser" 
	page import="com.memora.usuario.Telefone" %>
<!DOCTYPE html>

<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'segUser.label', default: 'SegUser')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<!-- Content Header (Page header) -->
		<section class="content-header">
			<h1>
				<g:message code="default.show.label" args="[entityName]" />
				<!--small>Control panel</small-->
				<small>Control Panel</small>
				
			</h1>
			<ol class="breadcrumb">
				<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
				<li class="active">Blank page</li>
			</ol>
		</section>


<g:if test="${flash.message}">
	<div class="message" role="status">${flash.message}</div>
</g:if>

<div class="row show-grid" style="margin-left: 0px;">
    <div class="mem-md-3 col-md-3">

    	<a class="thumbnail thumbnail-avatar-perfil" style="width: 180px; height: 180px;">
	      <img src="/SysMemora/img/avatar/${segUserInstance?.avatar}.png">
	    </a>

	    <div class="nome-perfil">
            <m class="nome-perfil-nome">
            	${segUserInstance?.nome}
        	</m> 
        	<m class="nome-perfil-sobrenome">
    			${segUserInstance?.sobrenome}
			</m>	
        </div>

    </div>	
    <div class="col-md-4 mem-md-4">

	<!-- Main content -->
		<section class="content" style="background: rgba(0, 0, 0, 0);">
		
		<table class="table table-bordered">
            <tbody>
	            <tr>
	                <td class="table-colum-1"><g:message code="segUser.username.label" default="Username" /></td>
	                <td class="table-colum-2"><g:fieldValue bean="${segUserInstance}" field="username"/></td>
	            </tr>
	            <tr>
	                <td class="table-colum-1"><g:message code="segUser.sexo.label" default="Sexo" /></td>
	                <td class="table-colum-2">
	                	<%println ((segUserInstance.sexo.equals("M")) ? "Masculino" : "Feminino")%>
	                </td>
	            </tr>
	            <tr>
	                <td class="table-colum-1"><g:message code="segUser.dataNascimento.label" default="Data de Nasc."/></td>
	                <td class="table-colum-2"><g:formatDate format="dd/MM/yyyy" date="${segUserInstance?.dataNascimento}"/></td>
	            </tr>
	            <tr>
	                <td class="table-colum-1"><g:message code="segUser.email.label" default="E-mail"/></td>
	                <td class="table-colum-2"><g:fieldValue bean="${segUserInstance}" field="email"/></td>
	            </tr>
	            <tr>
	                <td class="table-colum-1"><g:message code="memora.label.telefone"/></td>
	                <td class="table-colum-2">
						<g:each in="${telefoneInstanceList}" status="i" var="telefoneInstance">
							${telefoneInstance.numeroTelefone} - ${telefoneInstance.descricaoNumero} <br/>
						</g:each>
	                </td>
	            </tr>
	            <tr>
	                <td class="table-colum-1"><g:message code="segUser.sobremim.label" default="Sobre min "/></td>
	                <td class="table-colum-2"><g:fieldValue bean="${segUserInstance}" field="sobremim"/></td>
	            </tr>
	        </tbody>
	    </table>	
			<g:form url="[resource:segUserInstance, action:'delete']" method="DELETE">
				<fieldset class="buttons">
					<g:link class="btn btn-default" action="edit" resource="${segUserInstance}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					
					<g:actionSubmit class="btn btn-danger" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</section>

	</div>
    <div class="col-md-5 mem-md-5">
	-
	</div>
</div>

		
		
	</body>
</html>
